Signed-off-by: Keir Fraser <keir@xensource.com>
delta <<= shift;
__asm__ (
- "pushl %%edx ; "
- "mull %3 ; "
- "popl %%eax ; "
- "pushl %%edx ; "
- "mull %3 ; "
- "popl %3 ; "
- "addl %3,%%eax ; "
- "xorl %3,%3 ; "
- "adcl %3,%%edx ; "
+ "push %%edx ; "
+ "mul %3 ; "
+ "pop %%eax ; "
+ "push %%edx ; "
+ "mul %3 ; "
+ "pop %3 ; "
+ "add %3,%%eax ; "
+ "xor %3,%3 ; "
+ "adc %3,%%edx ; "
: "=A" (product), "=r" (tmp)
: "A" (delta), "1" (mul_frac) );
delta <<= scale->shift;
__asm__ (
- "pushl %%edx ; "
- "mull %3 ; "
- "popl %%eax ; "
- "pushl %%edx ; "
- "mull %3 ; "
- "popl %3 ; "
- "addl %3,%%eax ; "
- "xorl %3,%3 ; "
- "adcl %3,%%edx ; "
+ "push %%edx ; "
+ "mul %3 ; "
+ "pop %%eax ; "
+ "push %%edx ; "
+ "mul %3 ; "
+ "pop %3 ; "
+ "add %3,%%eax ; "
+ "xor %3,%3 ; "
+ "adc %3,%%edx ; "
: "=A" (product), "=r" (tmp)
: "A" (delta), "1" (scale->mul_frac) );